package com.neusoft.yuejian_6.model;

import com.neusoft.yuejian_6.javabean.Activity;
import com.neusoft.yuejian_6.service.ClubActivityService;

import java.util.List;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

import static com.neusoft.yuejian_6.base.Constant.BASE_URL;

/**
 * Created by Q on 2017/10/28.
 */

public class ClubActivityModel {
    private Retrofit retrofit;
    public ClubActivityModel(){
        retrofit=new Retrofit.Builder()
                .baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public Call<List<Activity>> getAllActivities(int club_id){
        ClubActivityService clubActivityService=retrofit.create(ClubActivityService.class);
        return  clubActivityService.getAllActivities(club_id);

    }

}
//    }
    /*public Call getShopById(){
//        ActivityService activityService=retrofit.create(ActivityService.class);
        return  activityService.getAllShops();

    }*/
    /*public Call getFoodByShop(int shop_id){
        FoodService siService = retrofit.create(FoodService.class);
        return siService.getFoodByShop(shop_id);
    }*/



